﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="XemDanhSachTinRaoVat.aspx.cs" Inherits="_XemDanhSachTinRaoVat" MasterPageFile="~/Masterpage/Sub_Full.Master" %>

<asp:Content ContentPlaceHolderID="MainContent1" id="maincontent1" runat="Server">
    <style type="text/css">
        #form1
        {
            height: 327px;
        }
    </style>

   
    <div>
    
    <asp:GridView ID="GridView2" runat="server" 
        CellPadding="4" 
        ForeColor="#333333" GridLines="None" Width="554px" 
        onrowdatabound="GridView2_RowDataBound" AutoGenerateColumns="False" 
            onpageindexchanging="GridView2_PageIndexChanging" AllowPaging="True" 
            PageSize="15" Height="602px" 
            onselectedindexchanged="GridView2_SelectedIndexChanged" TabIndex="1">
        <RowStyle BackColor="#E2E2E2" BorderColor="Black" HorizontalAlign="Center" 
            VerticalAlign="Middle" />
        <Columns>
                <asp:TemplateField HeaderText="Tên Tin Rao Vặt">
                    <ItemTemplate>
                        <asp:HyperLink ID="hplTenTin1" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Tên người dùng">
                    <ItemTemplate>
                        <asp:HyperLink ID="hplTenNguoiDung1" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="ThoiGianDang" HeaderText="Thời gian đăng" 
                    SortExpression="ThoiGianDang" />
                <asp:BoundField DataField="SoLanXem" HeaderText="Số Lần Xem" 
                    SortExpression="SoLanXem"></asp:BoundField>
                
                <asp:BoundField />
                
            </Columns>
        <FooterStyle BackColor="#666666" Font-Bold="True" ForeColor="White" 
            BorderColor="Black" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Right" 
            Font-Bold="True" Font-Overline="False" Font-Size="Larger" 
            Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle" 
            Width="100px" Wrap="False" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#666666" Font-Bold="True" ForeColor="White" 
            HorizontalAlign="Center" VerticalAlign="Middle" />
        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" 
            VerticalAlign="Middle" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    
    </div>
    <asp:SqlDataSource ID="DanhSachTinRaoVat" runat="server" 
        ConnectionString="<%$ ConnectionStrings:RaoVatConnectionString1 %>" 
        SelectCommand="SELECT * FROM [TIN_RAO_VAT]"></asp:SqlDataSource>
    <asp:LinqDataSource ID="LinQ_RaoVat" runat="server" 
        ContextTypeName="LinQ_RaoVatDataContext" TableName="TIN_RAO_VATs" 
        EnableDelete="True" EnableUpdate="True">
    </asp:LinqDataSource>

</asp:Content>
